import request from '@/utils/request'

// 查询用户换发记录子列表
export function listAiChangeRecordSub(query) {
  return request({
    url: '/business/aiChangeRecordSub/list',
    method: 'get',
    params: query
  })
}

// 查询用户换发记录子详细
export function getAiChangeRecordSub(id) {
  return request({
    url: '/business/aiChangeRecordSub/' + id,
    method: 'get'
  })
}

// 新增用户换发记录子
export function addAiChangeRecordSub(data) {
  return request({
    url: '/business/aiChangeRecordSub',
    method: 'post',
    data: data
  })
}

// 修改用户换发记录子
export function updateAiChangeRecordSub(data) {
  return request({
    url: '/business/aiChangeRecordSub',
    method: 'put',
    data: data
  })
}

// 删除用户换发记录子
export function delAiChangeRecordSub(id) {
  return request({
    url: '/business/aiChangeRecordSub/' + id,
    method: 'delete'
  })
}
